import jorm.Db;
import jorm.IOrmProvider;
import jorm.OrmProvider;
import jorm.Record;
import org.apache.log4j.xml.DOMConfigurator;


/**
 * @auther:陈磊 <br/>
 * Date: 13-1-6<br/>
 * Time: 上午10:49<br/>
 * connectMethod:13638363871@163.com<br/>
        */
public class test {

    public static void main(String[]args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        //日志初始化
        DOMConfigurator.configure("res/log4j.xml");
        //注册orm，初始化数据源
        IOrmProvider ormProvider=new OrmProvider(dataSoureceConfig.class, OrmMapperConfig.class);
        ormProvider.IntiOrm();//初始化orm基本参数

        ormProvider.AutoRegisterModel();//注册model
        ormProvider.showSql(true); //打印执行的sql语句
//        Game_Account game_account=Game_Account.game_account_Dao.findFirst("select *from Game_Account where account=?","a");
        Record account= Db.findFirst("select *from Game_Account where account=?","a");

        System.out.println(account.get("uid"));
        account.get("uid");
    }
}
